<!-- 搜索框及工具条 -->
<div class="c-head-box">
    <form method="get" action="{:Url('')}">
        <ul>
            <li class="c-head-search">
                <!-- 搜索条件 -->
                <ul>
                    <li><span>问答编号：</span><input type="text" name="question_id" value="{$question_id}"/></li>
                    <li><span>问题：</span><input type="text" name="question_content" value="{$question_content}"/></li>
                    <li><span>状态：</span>{:widget('common/Select/select',array('is_reply',"is_reply",$is_reply))}</li>
                </ul>
            </li>
            <li class="c-head-button">
                <!-- 操作按钮 -->
                <div class="fr"><input type="submit" class="but_blue" value="搜索"></div>
            </li>
        </ul>
    </form>
</div>

<!--用户列表-->
<div class="lists-tab-cont">
    <div class="lists-table">
        <table class="pointer" cellpadding="0" cellspacing="0" border="0">
            <thead>
            <tr>
                <th style="width: 10%;" class="tabSort-header"><a class="tabSort-header-inner"><p>问答编号</p></a></th>
                <th style="width: 30%;" class="tabSort-header"><a class="tabSort-header-inner"><p>问题</p></a></th>
                <th style="width: 10%;" class="tabSort-header"><a class="tabSort-header-inner"><p>提问人昵称</p></a></th>
                <th style="width: 10%;" class="tabSort-header"><a class="tabSort-header-inner"><p>提问人姓名</p></a></th>
                <th style="width: 10%;" class="tabSort-header"><a class="tabSort-header-inner"><p>创建时间</p></a></th>
                <th style="width: 10%;" class="tabSort-header"><a class="tabSort-header-inner"><p>状态</p></a></th>
                <th class="tabSort-header"><a class="tabSort-header-inner"><p>操作</p></a></th>
            </tr>
            </thead>
            <tbody>
            {foreach name="question_list" item="info"}
            <tr>
                <td>{$info.question_id}</td>
                <td>{$info.question_content}</td>
                <td>{$info.nick|default='--'}</td>
                <td>{$info.real|default='--'}</td>
                <td>{$info.create_time}</td>
                <td>{:widget('common/Color/color',array('is_reply',empty($info['reply_content']) ? '1' : '2'))}</td>
                <td>
                    <a data-type="info-win" data-src="{:Url('question_info',array('question_id'=>$info['question_id']))}" data-title="详情" data-width="80%" data-height="80%" class="blue">详情</a>
                    <a href="{:url('question_del',['question_id'=>$info['question_id']])}"  class="blue info1">删除</a>
                </td>
            </tr>
            {/foreach}
            </tbody>
        </table>
    </div>

    <!-- 翻页模板 -->
    <div class="page">
        {$Think.config.page_html}
    </div>
</div>

<!-- JS处理 -->
<script language="javascript">
    $(function(){
        //提示信息
        $("a.info1").click(function(){
            if(confirm("您确定要删除该提问吗？")){
                return true;
            }else{
                return false;
            }
        });
    });
</script>